package com.jf.springboot.config;

import com.jf.springboot.bean.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-11-26
 * Time:14:45
 */
@Configuration(proxyBeanMethods = false)
public class BeanConfig2 {
    @Bean
    public Student student02() {
        Student student = new Student();
        student.setId(20);
        student.setName("tom");
        student.setAge(27);
        return student;
    }
}
